import 'dart:convert';
/// createBy : "admin"
/// createTime : "2023-11-03 11:40:15"
/// updateBy : ""
/// updateTime : null
/// remark : null
/// orgId : 205
/// parentId : 110
/// ancestors : "0,110"
/// orgName : "安装商pdd"
/// orderNum : 0
/// leader : null
/// email : null
/// status : "0"
/// delFlag : "0"
/// linkman : null
/// phone : null
/// landlineNumber : null
/// address : "浙江省杭州市上城区望江街道天福花园"
/// longitude : 120.20602300
/// latitude : 30.23369500
/// parentName : null
/// type : 1
/// createByName : "系统管理员"

OrganizationModel organizationModelFromJson(String str) => OrganizationModel.fromJson(json.decode(str));
String organizationModelToJson(OrganizationModel data) => json.encode(data.toJson());
class OrganizationModel {
  OrganizationModel({
      String? createBy, 
      String? createTime, 
      String? updateBy, 
      dynamic updateTime, 
      dynamic remark, 
      num? orgId, 
      num? parentId, 
      String? ancestors, 
      String? orgName, 
      num? orderNum, 
      dynamic leader, 
      dynamic email, 
      String? status, 
      String? delFlag, 
      dynamic linkman, 
      dynamic phone, 
      dynamic landlineNumber, 
      String? address, 
      num? longitude, 
      num? latitude, 
      dynamic parentName, 
      num? type, 
      String? createByName,}){
    _createBy = createBy;
    _createTime = createTime;
    _updateBy = updateBy;
    _updateTime = updateTime;
    _remark = remark;
    _orgId = orgId;
    _parentId = parentId;
    _ancestors = ancestors;
    _orgName = orgName;
    _orderNum = orderNum;
    _leader = leader;
    _email = email;
    _status = status;
    _delFlag = delFlag;
    _linkman = linkman;
    _phone = phone;
    _landlineNumber = landlineNumber;
    _address = address;
    _longitude = longitude;
    _latitude = latitude;
    _parentName = parentName;
    _type = type;
    _createByName = createByName;
}

  OrganizationModel.fromJson(dynamic json) {
    _createBy = json['createBy'];
    _createTime = json['createTime'];
    _updateBy = json['updateBy'];
    _updateTime = json['updateTime'];
    _remark = json['remark'];
    _orgId = json['orgId'];
    _parentId = json['parentId'];
    _ancestors = json['ancestors'];
    _orgName = json['orgName'];
    _orderNum = json['orderNum'];
    _leader = json['leader'];
    _email = json['email'];
    _status = json['status'];
    _delFlag = json['delFlag'];
    _linkman = json['linkman'];
    _phone = json['phone'];
    _landlineNumber = json['landlineNumber'];
    _address = json['address'];
    _longitude = json['longitude'];
    _latitude = json['latitude'];
    _parentName = json['parentName'];
    _type = json['type'];
    _createByName = json['createByName'];
  }
  String? _createBy;
  String? _createTime;
  String? _updateBy;
  dynamic _updateTime;
  dynamic _remark;
  num? _orgId;
  num? _parentId;
  String? _ancestors;
  String? _orgName;
  num? _orderNum;
  dynamic _leader;
  dynamic _email;
  String? _status;
  String? _delFlag;
  dynamic _linkman;
  dynamic _phone;
  dynamic _landlineNumber;
  String? _address;
  num? _longitude;
  num? _latitude;
  dynamic _parentName;
  num? _type;
  String? _createByName;
OrganizationModel copyWith({  String? createBy,
  String? createTime,
  String? updateBy,
  dynamic updateTime,
  dynamic remark,
  num? orgId,
  num? parentId,
  String? ancestors,
  String? orgName,
  num? orderNum,
  dynamic leader,
  dynamic email,
  String? status,
  String? delFlag,
  dynamic linkman,
  dynamic phone,
  dynamic landlineNumber,
  String? address,
  num? longitude,
  num? latitude,
  dynamic parentName,
  num? type,
  String? createByName,
}) => OrganizationModel(  createBy: createBy ?? _createBy,
  createTime: createTime ?? _createTime,
  updateBy: updateBy ?? _updateBy,
  updateTime: updateTime ?? _updateTime,
  remark: remark ?? _remark,
  orgId: orgId ?? _orgId,
  parentId: parentId ?? _parentId,
  ancestors: ancestors ?? _ancestors,
  orgName: orgName ?? _orgName,
  orderNum: orderNum ?? _orderNum,
  leader: leader ?? _leader,
  email: email ?? _email,
  status: status ?? _status,
  delFlag: delFlag ?? _delFlag,
  linkman: linkman ?? _linkman,
  phone: phone ?? _phone,
  landlineNumber: landlineNumber ?? _landlineNumber,
  address: address ?? _address,
  longitude: longitude ?? _longitude,
  latitude: latitude ?? _latitude,
  parentName: parentName ?? _parentName,
  type: type ?? _type,
  createByName: createByName ?? _createByName,
);
  String? get createBy => _createBy;
  String? get createTime => _createTime;
  String? get updateBy => _updateBy;
  dynamic get updateTime => _updateTime;
  dynamic get remark => _remark;
  num? get orgId => _orgId;
  num? get parentId => _parentId;
  String? get ancestors => _ancestors;
  String? get orgName => _orgName;
  num? get orderNum => _orderNum;
  dynamic get leader => _leader;
  dynamic get email => _email;
  String? get status => _status;
  String? get delFlag => _delFlag;
  dynamic get linkman => _linkman;
  dynamic get phone => _phone;
  dynamic get landlineNumber => _landlineNumber;
  String? get address => _address;
  num? get longitude => _longitude;
  num? get latitude => _latitude;
  dynamic get parentName => _parentName;
  num? get type => _type;
  String? get createByName => _createByName;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['createBy'] = _createBy;
    map['createTime'] = _createTime;
    map['updateBy'] = _updateBy;
    map['updateTime'] = _updateTime;
    map['remark'] = _remark;
    map['orgId'] = _orgId;
    map['parentId'] = _parentId;
    map['ancestors'] = _ancestors;
    map['orgName'] = _orgName;
    map['orderNum'] = _orderNum;
    map['leader'] = _leader;
    map['email'] = _email;
    map['status'] = _status;
    map['delFlag'] = _delFlag;
    map['linkman'] = _linkman;
    map['phone'] = _phone;
    map['landlineNumber'] = _landlineNumber;
    map['address'] = _address;
    map['longitude'] = _longitude;
    map['latitude'] = _latitude;
    map['parentName'] = _parentName;
    map['type'] = _type;
    map['createByName'] = _createByName;
    return map;
  }

}